package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.ContractWorkersStatisticsDao;
import com.site.wisdom_construction.entity.personnelModule.ContractWorkersStatistics;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/2/12
 * @Description
 */
@Service
public class ContractWorkersStatisticsService implements ContractWorkersStatisticsDao {
    @Autowired
    private ContractWorkersStatisticsDao contractWorkersStatisticsDao;

    @Override
    public int insertContractWorkersStatistics(Map map) {
        return contractWorkersStatisticsDao.insertContractWorkersStatistics(map);
    }

    @Override
    public int deleteContractWorkersStatistics(Integer projectId) {
        return contractWorkersStatisticsDao.deleteContractWorkersStatistics(projectId);
    }

    @Override
    public List<ContractWorkersStatistics> selectContractWorkersStatistics(Map map) {
        return contractWorkersStatisticsDao.selectContractWorkersStatistics(map);
    }
}
